package cn.HRMS.modle;

import java.util.HashSet;
import java.util.Set;

/**
 * Salary entity. @author MyEclipse Persistence Tools
 */

public class Salary implements java.io.Serializable {

	// Fields

	private Long salaryId;
	private Users users;
	private Double basicSalary;
	private Double dutySalary;
	private Set rewardAndPunishments = new HashSet(0);

	// Constructors

	/** default constructor */
	public Salary() {
	}

	/** minimal constructor */
	public Salary(Users users, Double basicSalary, Double dutySalary) {
		this.users = users;
		this.basicSalary = basicSalary;
		this.dutySalary = dutySalary;
	}

	/** full constructor */
	public Salary(Users users, Double basicSalary, Double dutySalary,
			Set rewardAndPunishments) {
		this.users = users;
		this.basicSalary = basicSalary;
		this.dutySalary = dutySalary;
		this.rewardAndPunishments = rewardAndPunishments;
	}

	// Property accessors

	public Long getSalaryId() {
		return this.salaryId;
	}

	public void setSalaryId(Long salaryId) {
		this.salaryId = salaryId;
	}

	public Users getUsers() {
		return this.users;
	}

	public void setUsers(Users users) {
		this.users = users;
	}

	public Double getBasicSalary() {
		return this.basicSalary;
	}

	public void setBasicSalary(Double basicSalary) {
		this.basicSalary = basicSalary;
	}

	public Double getDutySalary() {
		return this.dutySalary;
	}

	public void setDutySalary(Double dutySalary) {
		this.dutySalary = dutySalary;
	}

	public Set getRewardAndPunishments() {
		return this.rewardAndPunishments;
	}

	public void setRewardAndPunishments(Set rewardAndPunishments) {
		this.rewardAndPunishments = rewardAndPunishments;
	}

}